<!DOCTYPE html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body {
        width: 100%;
        height: 100%;
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
        background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.4)), to(rgba(0, 0, 0, 0)));
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
        background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
        background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
        background-repeat: no-repeat;
      }
      .nav {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
           -moz-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -webkit-box-align: center;
        -webkit-align-items: center;
           -moz-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        padding: 0 0.3rem;
        padding-top: 0.22rem;
        padding-bottom: 0.92rem;
      }
      .nav button {
        font-size: 0.32rem;
        color: white;
        background: none;
        border: none;
        outline: none;
      }
      .nav button:last-child {
        width: 1.2rem;
        height: 0.66rem;
        background-color: #1ECB6D;
        border-radius: 0.08rem;
      }
    </style>
  </head>
  <body>
    <div class="nav">
      <button id="cancel">取消</button>
      <button id="sure">确定</button>
    </div>
  </body>
  <script>
    !function (w) {
      var e = w.document,
        t = e.documentElement,
        i = 750,
        o = "orientationchange" in w ? "orientationchange" : "resize",
        a = function () {
          var cw = t.clientWidth || document.body.clientWidth;
          t.style.fontSize = cw / i * 100 + "px"
        };
      e.addEventListener && (w.addEventListener(o, a, !1), e.addEventListener("DOMContentLoaded", a, !1));
      e.body.style.fontSize = '0.28rem';
    }(window);
    apiready = function () {
      document.body.style.paddingTop = api.safeArea.top + 'px'
      document.getElementById('cancel').onclick = function () {
        window.api.sendEvent({
          name: 'mapEvent',
          extra: {
            type: 'cancel'
          }
        })
      }
      document.getElementById('sure').onclick = function () {
        window.api.sendEvent({
          name: 'mapEvent',
          extra: {
            type: 'sure'
          }
        })
      }
    }
  </script>
</html>
